package com.example.controller;

import com.example.aspect.anno.LimitRequest;
import com.example.model.ApiResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hello
 * @date 2023-04-12 15:43:26
 */
@RequestMapping("/test")
@RestController
public class TestController {

    @GetMapping("/limitRequest")
    @LimitRequest
    public ApiResponse limitRequestTest() {
        return ApiResponse.ok(66666);
    }

}
